import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	apartment_list: apix + '/room/apartment/list',
	apartment_export: apix + '/room/apartment/export',
	room_apartment: apix + '/room/apartment',
	// room_apartment: apix + '/room/apartment',
	room_apartmentId: apix + '/room/apartment/',
	apartment_mobile_list: apix + '/room/apartment/mobile/list'
}
//查询租房信息列表
export function apartmentMobile_list(obj) {
	return request.get(api.apartment_mobile_list, {
		...obj
	})
}
//查询租房信息列表
export function apartmentList(obj) {
	return request.get(api.apartment_list, {
		...obj
	})
}
//导出租房信息列表
export function apartmentExport(obj) {
	return request.post(api.apartment_export, {
		...obj
	})
}
//获取租房信息详细信息
export function apartmentId(id) {
	return request.get(api.room_apartmentId + id)
}
//新增租房信息
export function addapartment(obj) {
	return request.post(api.room_apartment, {
		...obj
	})
}
//修改租房信息
export function putapartment(obj) {
	return request.put(api.room_apartment, {
		...obj
	})
}
//删除租房信息
export function delapartment(id) {
	return request.delete(api.room_apartmentId + id)
}